//
//  FaceDetail.m
//  ChampoinPeso
//
//  Created by mac on 2025/2/17.
//

#import "FaceDetail.h"

@interface FaceDetail ()
@property (nonatomic,strong)UIButton *apply;

@end

@implementation FaceDetail

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navtitleText = @"ldentity information";
    self.view.backgroundColor = MainColor;
    [self navUI];
    [self setupUI];

}
-(void)setupUI
{
    [self.view addSubview:self.apply];
    [_apply mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_offset(-bottomSafeHeight-5);
        make.left.mas_offset(24);
        make.right.mas_offset(-24);
        make.height.mas_equalTo(52);
    }];
    
    UIView *tipview = [UIView new];
    tipview.layer.cornerRadius = 10;
    tipview.backgroundColor = HexColor(@"#90DA01");
    [self.view addSubview:tipview];
    [tipview mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_offset(16+64+MarginTop+20);
        make.left.mas_offset(8);
        make.right.mas_offset(-8);
        make.height.mas_equalTo(33);
    }];
    UILabel *lab = [UILabel new];
    lab.text = @"Congratulations！your certification has been approved";
    lab.textColor = HexColor(@"#7DBE00");
    lab.font = [UIFont systemFontOfSize:14];
    [tipview addSubview:lab];
    [lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(tipview);
    }];
    
    UILabel *t1 = [UILabel new];
    t1.text = @"Front of ID photo";
    t1.textColor = HexColor(@"#212121");
    t1.font = [UIFont systemFontOfSize:18 weight:UIFontWeightMedium];
    [self.view addSubview:t1];
    [t1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(tipview.mas_bottom).offset(39);
        make.centerX.mas_equalTo(self.view);
    }];
    UIImageView *t1image = [UIImageView new];
    t1image.image = [UIImage imageNamed:@"t1img"];
    [self.view addSubview:t1image];
    [t1image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(t1.mas_bottom).offset(16);
        make.centerX.mas_equalTo(self.view);
    }];

    UILabel *t2 = [UILabel new];
    t2.text = @"Face recognition";
    t2.textColor = HexColor(@"#212121");
    t2.font = [UIFont systemFontOfSize:18 weight:UIFontWeightMedium];
    [self.view addSubview:t2];
    [t2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(t1image.mas_bottom).offset(67);
        make.centerX.mas_equalTo(self.view);
    }];
    UIImageView *t2image = [UIImageView new];
    t2image.image = [UIImage imageNamed:@"t2img"];
    [self.view addSubview:t2image];
    [t2image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(t2.mas_bottom).offset(16);
        make.centerX.mas_equalTo(self.view);
    }];

}
-(UIButton *)apply
{
    if (!_apply) {
        _apply = [UIButton buttonWithType:UIButtonTypeCustom];
        [_apply setImage:[UIImage imageNamed:@"auth_apply_bg"] forState:UIControlStateNormal];
    }
    return _apply;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
